package mediator;

public class MediatorTestMain {
    public static void main(String[] args) {
        ChatMediator chatMediator = new ChatRoom();

        User user1 = new User(chatMediator, "Alice");
        User user2 = new User(chatMediator, "Bob");

        user1.sendMessage("Hello, Bob!");
        user2.sendMessage("Hi, Alice!");
    }
}
